Namespacing everything to /UVa.
[andmenj-acm.git] / UVa / 11509 - Touring Robot / random.cpp
blob98dbe88f77298350911f0600d331fbdeebfe9753
1 /*
2 Problem:
3 Author: Andrés Mejía-Posada
4 (http://blogaritmo.factorcomun.org)
6 */
8 using namespace std;
9 #include <algorithm>
10 #include <iostream>
11 #include <iterator>
12 #include <sstream>
13 #include <fstream>
14 #include <cassert>
15 #include <climits>
16 #include <cstdlib>
17 #include <cstring>
18 #include <string>
19 #include <cstdio>
20 #include <vector>
21 #include <cmath>
22 #include <queue>
23 #include <deque>
24 #include <stack>
25 #include <map>
26 #include <set>
28 #define D(x) cout << #x " is " << x << endl
30 void randomCase(int max){
31 int n = random()%9+2;
32 cout << n << endl;
33 for (int i=0; i<n; ++i){
34 int x, y;
35 x = random()%(max+1) * (random()%2?-1:1);
36 y = random()%(max+1) * (random()%2?-1:1);
37 cout << x << " " << y << endl;
42 int main(){
43 for(int i=10; i--;){
44 randomCase(10);
46 cout << 0 << endl;
47 return 0;